import "@/theme/index.less";

import { createApp } from "vue";
import dayjs from "dayjs";
import zhCn from "dayjs/locale/zh-cn";
import App from "./App.vue";
import router from "./router";
import pinia from "@/stores/index";
import ArcoVue from "@arco-design/web-vue";
import ArcoVueIcon from "@arco-design/web-vue/es/icon";

import { apiMock } from "@/mock/index";

const app = createApp(App);

apiMock();
dayjs.locale(zhCn);
app.use(router);
app.use(pinia);
app.use(ArcoVue);
app.use(ArcoVueIcon);

app.mount("#app");
